package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchAccountHistoryServiceApi;
import com.thb.pay.api.merchant.vo.req.MchAccountHistoryPageReq;
import com.thb.pay.api.merchant.vo.req.MchAccountHistoryReq;
import com.thb.pay.api.merchant.vo.resp.MchAccountHistoryVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class MchAccountHistoryServiceApiFallbackFactory implements FallbackFactory<MchAccountHistoryServiceApi> {


    @Override
    public MchAccountHistoryServiceApi create(Throwable throwable) {
        return new MchAccountHistoryServiceApi() {
            @Override
            public PageResult<MchAccountHistoryVo> findPage(MchAccountHistoryPageReq pageReq) {
                return null;
            }

            @Override
            public MchAccountHistoryVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchAccountHistoryReq paramReq) {

            }

            @Override
            public void update(MchAccountHistoryReq paramReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}